
<nav class="navbar navbar-default ck-navbar navbar-fixed-top" role="navigation">
	<div class="container-fluid ck-container">
		<div class="navbar-header ck-navbar-header">
			<button type="button" class="navbar-toggle" data-toggle="collapse"
					data-target="#example-navbar-collapse">
				<span class="sr-only">切换导航</span>
				<span class="icon-bar ck-icon-bar"></span>
				<span class="icon-bar ck-icon-bar"></span>
				<span class="icon-bar ck-icon-bar"></span>
			</button>
			<a class="navbar-brand ck-brand" href="#">ChKa命博客</a>
		</div>
		<div class="collapse navbar-collapse ck-nav" id="example-navbar-collapse">
			<ul class="nav navbar-nav">
				<li class="active">
					<a class="dropdown-toggle"  href="{:url('index/index')}">首页</a>
				</li>
				<volist name="nav" id="vo">
					<li>
						<a class="dropdown-toggle" href="{:url('index/category', array('cat_id'=> $vo.cat_id))}" data-toggle="dropdown" >{$vo.cat_name}</a>
						<php>$childCat = get_child_cat($vo['cat_id']);</php>
							<if condition="!empty($childCat)">
								<ul class="dropdown-menu">
										<volist name="childCat" id="vv">
											<li><a href="{:url('index/category', array('cat_id'=> $vv.cat_id))}">{$vv.cat_name}</a></li>
										</volist>
								</ul>
							</if>
					</li>
				</volist>
				<li class="active">
					<a class="dropdown-toggle"  href="{:url('home/index/career')}">职业生涯</a>
				</li>
			</ul>
			<form id="search" action="{:url('home/index/search')}" method="post">
				<div class="input-group search hidden-sm">
						<input type="text" name="keyword" class="form-control" placeholder="请输入搜索关键词">
						<span class="input-group-btn">
							<button class="btn btn-default" type="submit">Go!</button>
						   </span>
				</div><!-- /input-group -->
			</form>
		</div>

		</div>
	</div>
</nav>
